package design_patterns.observer;

public class OctalObserver extends Observer {
	public OctalObserver(Subject subject) {
		this.subject=subject;
		subject.attch(this);
	}

	@Override
	public void update() {
		System.out.println("十进制观察者更新。。"+Integer.toOctalString(this.subject.getState()));
	}

}
